<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Installing Netbeans 6</title>
<link rel="stylesheet" href="/cfg/format.css" type="text/css">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="keywords" content="jee tutorial, Java, web applications, install Netbeans6, IDE">
<meta name="description" content="This part of the Java EE 5 tutorials covers the Installing Netbeans 6.">
<meta name="language" content="en">
<meta name="author" content="Jan Bodnar">
<meta name="distribution" content="global">

<script type="text/javascript" src="/lib/jquery.js"></script>
<script type="text/javascript" src="/lib/common.js"></script>

</head>

<body>

<div class="container">

<div id="wide_ad" class="ltow">
<script type="text/javascript"><!--
google_ad_client = "pub-9706709751191532";
/* 160x600, August 2011 */
google_ad_slot = "2484182563";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>


<div class="content">


<a href="/" title="Home">Home</a>&nbsp;
<a href="..">Contents</a>


<h1>Installing Netbeans 6</h1>

<p>
In this part of the Java EE 5 tutorials, we will install Netbeans 6.0.  
</p>

<div class="center"> 
<script type="text/javascript"><!--
google_ad_client = "pub-9706709751191532";
/* horizontal */
google_ad_slot = "1734478269";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script> 
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> 
</script> 
</div> 

<p>
The NetBeans IDE is an open-source integrated development environment. 
It is entirely written in Java. In Netbeans, we
can develop applications for all Java platforms. We can create mobile, 
enterprise and desktop applications.
All this is available out of the box. Don't forget about the System requirements.
For Ubuntu Linux, this is at least 800 MHz processor, 512 MB memory and 650 MB free disk space. 
Recommended hardware configuration is 2.6 GHz processor, 1 GB memory and 1 GB free disk space. 
</p>


<h2>Steps</h2>

<p>
First we navigate to the netbeans.org website and download the bundled package. 
There are 6 various bundles available for
us to download. We only download features that we need. 
</p>

<p>
This is a list of 6 bundles
</p>

<ul>
<li>Web &amp; Java EE</li>
<li>Mobility</li>
<li>Java SE</li>
<li>Ruby</li>
<li>C/C++</li>
<li>All</li>
</ul>

<p>
I have downloaded the <b>Web &amp; Java EE bundle</b>. We can choose also to 
install all features in All bundle, if we want.
</p>

<img src="/img/java/jee/bundles.png" alt="Netbeans 6 bundles">
<div class="figure">Figure: Netbeans 6 bundles</div>


<p>
The above image clearly shows, what we are going to install in Web &amp; Java EE. 
In this bundle we will install tools
for creating J2SE applications as well as Java web and enterprise applications. 
We will also install.
We will also install the <b>Glassfish</b> application server 
and <b>Tomcat</b> web server.
</p>

<p>
So I downloaded the latest version of the Netbeans 6 IDE for linux. The downloaded 
file name is <b>netbeans-6.0-javaee-linux.sh.</b>
</p>


<pre class="code">
$ chmod +x netbeans-6.0-javaee-linux.sh
</pre>

<p>
We make the file executable. 
</p>

<pre class="code">
$ chmod +x netbeans-6.0-javaee-linux.sh
</pre>

<p>
Run the install file. 
</p>


<pre class="code">
Configuring the installer...
Searching for JVM on the system...
Java SE Development Kit (JDK) was not found on this computer
JDK 6 or JDK 5 is required for installing the NetBeans IDE. 
Make sure that the JDK is properly installed and run installer again.
You can specify valid JDK location using --javahome installer argument.

To download the JDK, visit http://java.sun.com/javase/downloads
</pre>

<p>
I received this error message. It tells, that the installer was not 
able to find the JDK on my computer. 
</p>


<pre class="code">
$ ./netbeans-6.0-javaee-linux.sh --java-home ~/bin/jdk1.6.0_03/
</pre>

<p>
In such case,  we need to provide the java home directory on the command line. 
</p>

<p>
Next we work with a wizard to complete the installation process. 
</p>

<img src="/img/java/jee/wizard.png" alt="Wizard page">
<div class="figure">Figure: Wizard page</div>


<p>
Using the wizards, we accept licence agreements, provide the netbeans install 
directory, configure glassfish properties and
provide the tomcat installation directory.
</p>


<pre class="code">
$ ./netbeans --laf javax.swing.plaf.metal.MetalLookAndFeel
</pre>

<p>
Launch netbeans with metal look and feel. 
</p>


<p>
In this part of the JEE tutorial, we covered Netbeans installation.
</p>


<div class="center"> 
<script type="text/javascript"><!--
google_ad_client = "pub-9706709751191532";
/* horizontal */
google_ad_slot = "1734478269";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script> 
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> 
</script> 
</div> 
<br> 

<div class="botNav, center">
<span class="botNavItem"><a href="/">Home</a></span> ‡ <span class="botNavItem"><a href="..">Contents</a></span> ‡ 
<span class="botNavItem"><a href="#">Top of Page</a></span>
</div>


<div class="footer">
<div class="signature">
<a href="/">ZetCode</a> last modified January 8, 2008  <span class="copyright">&copy; 2007 - 2013 Jan Bodnar</span>
</div>
</div>
 
</div> <!-- content -->

</div> <!-- container -->

</body>
</html>

